﻿@model BusinessManagementStudio.ViewModel.ContContractorCreation

@{
    ViewBag.Title = "New Contractor";
}

<title>Contractor Creation</title>

<h2 align="center">New Contractor</h2>

@using (Html.BeginForm("MultipleCommandForAdmin", "Maintenance"))
{
    @Html.ValidationSummary(true)

    <table align="center">
        <tr>
            <td width="150">Contractor Code :</td>
            <td>@Html.TextBox("ContractorCode")</td>
        </tr>
        <tr>
            <td>Current Number :</td>
            <td>@Html.TextBox("CurrContractorID", Model.ContractorList.Count, new { @class = "text-box single-line readonly", @readonly = "readonly" })</td>
        </tr>
        <tr>
            <td>Contractor Name :</td>
            <td>@Html.TextBox("ContractorName")</td>
        </tr>
    </table>
    
    <br align="center" />
    
    <div align="center">
        <button type="submit" name="Command" value="CreateContractor">Create</button>
        <button type="submit" name="Command" value="Cancel">Cancel</button>
    </div>

    <br />
    <div align="center">© 2013 BD Studio</div>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}